package org.liukai.ssh_ems.service;

import org.liukai.ssh_ems.dao.UserDao;
import org.liukai.ssh_ems.entity.po.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @project ssh_ems
 * @create UserService.java 
 * 
 * @author liukai
 * @date 2016/1/14 16:25
 * @detail 
 */

@Service
public class UserService {
    @Resource
    private UserDao userDao;

    public User queryUserByusername(User user) {
        return userDao.queryUserByusername(user.getUsername());
    }
}
